package com.liushuai.eas.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.liushuai.eas.mapper.TeacherMapper;
import com.liushuai.eas.pojo.Teacher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

@Service
public class TeacherImp implements TeacherMapper {

    @Resource
    private TeacherMapper teacherMapper;

    @Override
    public int insert(Teacher entity) {
        return teacherMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return teacherMapper.deleteById(id);
    }

    @Override
    public int deleteById(Teacher entity) {
        return teacherMapper.deleteById(entity);
    }

    @Override
    public int deleteByMap(Map<String, Object> columnMap) {
        return 0;
    }

    @Override
    public int delete(Wrapper<Teacher> queryWrapper) {
        return 0;
    }

    @Override
    public int deleteBatchIds(Collection<?> idList) {
        return 0;
    }

    @Override
    public int updateById(Teacher entity) {
        return teacherMapper.updateById(entity);
    }

    @Override
    public int update(Teacher entity, Wrapper<Teacher> updateWrapper) {
        return 0;
    }

    @Override
    public Teacher selectById(Serializable id) {
        return teacherMapper.selectById(id);
    }

    @Override
    public List<Teacher> selectBatchIds(Collection<? extends Serializable> idList) {
        return null;
    }

    @Override
    public List<Teacher> selectByMap(Map<String, Object> columnMap) {
        return null;
    }

    @Override
    public Teacher selectOne(Wrapper<Teacher> queryWrapper) {
        return teacherMapper.selectOne(queryWrapper);
    }

    @Override
    public Long selectCount(Wrapper<Teacher> queryWrapper) {
        return null;
    }

    @Override
    public List<Teacher> selectList(Wrapper<Teacher> queryWrapper) {
        return teacherMapper.selectList(queryWrapper);
    }

    @Override
    public List<Map<String, Object>> selectMaps(Wrapper<Teacher> queryWrapper) {
        return null;
    }

    @Override
    public List<Object> selectObjs(Wrapper<Teacher> queryWrapper) {
        return null;
    }

    @Override
    public <P extends IPage<Teacher>> P selectPage(P page, Wrapper<Teacher> queryWrapper) {
        return teacherMapper.selectPage(page, queryWrapper);
    }

    @Override
    public <P extends IPage<Map<String, Object>>> P selectMapsPage(P page, Wrapper<Teacher> queryWrapper) {
        return null;
    }

    @Override
    public int queryTotal() {
        return teacherMapper.queryTotal();
    }

    @Override
    public Teacher selectOne(int id) {
        return teacherMapper.selectOne(id);
    }
}
